from tracemalloc import start
from typing import *
def is_float(text:str):
    if text=="":
        return False
    if text.count(".")==0 and text.isdigit():
        return True
    elif text.count(".")==0:
        return False
    elif text.count(".")==1 and text.replace(".","").isdigit() and \
        (not text.startswith(".")) and (not text.endswith(".")):
        return True
    else:
        return False